package org.example.product.api;

import org.example.core.utils.R;
import org.example.product.api.module.SeckillSkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("seckill-service")
public interface SeckillService {

    @GetMapping("/seckill/backend/sku/{id}")
    R<SeckillSkuInfo> getSeckillSku(@PathVariable("id") Long skuId);
}
